import HttpRequest from "../request";

/**
 * 获取所有外卖信息
 *
 */
export async function getAllProduct(params) {
  return HttpRequest({
    url: "/product",
    method: "GET",
    params: params,
  });
}

export async function getProductById(id) {
  return HttpRequest({
    url: `/product/${id}`,
    method: "GET",
  });
}
